import math
def function(x,n):
    if n == 1:
        return math.sqrt(1 + x)
    return math.sqrt(n + function(x,n - 1))

x,n = map(float,input().split())
result = function(x,n)
print(f'{result:.2f}')